//
//  Categories.m
//  Hyatt
//
//  Created by QC.L on 15/5/26.
//  Copyright (c) 2015年 QC.L. All rights reserved.
//

#import "Categories.h"
#import "Menu.h"

@implementation Categories
- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"data"]) {
        self.menuArr = [NSMutableArray array];
        NSArray *arr = value;
        for (NSDictionary *dic in arr) {
            Menu *menu = [[Menu alloc] initWithDictionary:dic];
            [self.menuArr addObject:menu];
        }
    }
}
@end
